<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <link rel="stylesheet" type="text/css" href="<%=path %>/static/css/new-list.css">
 <link rel="stylesheet" type="text/css" href="<%=path %>/static/css/table-list.css">
</head><body><div class="big-box">
    <div class="chaxuntj-list-title">
        <div class="message-box">
            <div class="chaxun-message">
                <div class="chaxun-tiaojian">
                    <ul>
                        <li>
                            <span>药品名称：</span>
                            <div class="input-box-new" style="width: 220px;">
                                <input type="text" id="chaxtj-ypxs-xingmingsj" placeholder="请输入药品名称查询">
                            </div>
                        </li>
                          <li>
                                <span>日期：</span>
                                <div class="input-box begin-time input-group date" id="ypxs-datetimepicker1">
				                    <input id="ypxs-kaishjsj" class="form-control" type="text">
				                    <span class="input-group-addon cxtj-timepicker-icon">
				                        <span class="glyphicon glyphicon-calendar"></span>
				                    </span>
				                </div>
                                <span>-</span>
                                <div class="input-box end-time input-group date" id="ypxs-datetimepicker2">
                                    <input id="ypxs-jieshusj" class=" form-control" type="text">
                                    <span class="input-group-addon cxtj-timepicker-icon">
				                        <span class="glyphicon glyphicon-calendar"></span>
				                    </span>
                                </div>
                            </li>
                    </ul>
                </div>
                <div class="button-box-new">
                    <button class="button" id="chaxtj-ypxs-chaxunbtn"><span>查询</span></button>
                    <div class="button button1" id="chaxtj-ypxs-chongzhibtn"><span>重置</span></div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="menu-tiaoj ">
            <div class="xuanze-tiaoj tongjifs  chaxtj-clickcontroller-ypxs-div">
            	<input type="hidden" value="1" class="chaxtj-clickcontroller-ypxs-input" id="chaxtj-ypxs-fangshi">
                <span>统计方式：</span>
                <ul>
                    <li class="xuanzong left-border" value="1" id="lx-ypxsmx">按销售明细</li>
                    <li value="2" id="lx-ypxshz">按药品汇总 </li>
                </ul>
            </div>
            <div class="xuanze-tiaoj leixing  chaxtj-clickcontroller-ypxs-div">
            	<input type="hidden" value="0" class="chaxtj-clickcontroller-ypxs-input" id="chaxtj-ypxs-leixing">
                <span>类型：</span>
                <ul>
                	<li class="xuanzong left-border" id="lb-quanbu" value="0">全部</li>
                    <li value="2" id="lb-ypxschengyao">成药</li>
                    <li value="1" id="lb-ypxsyinpian">饮片</li>
                </ul>
            </div>
            <div class="xuanze-tiaoj laiyuan  chaxtj-clickcontroller-ypxs-div">
            	<input type="hidden" value="0" class="chaxtj-clickcontroller-ypxs-input" id="chaxtj-ypxs-laiyuan">
                <span>来源：</span>
                <ul>
                	<li class="xuanzong left-border" id="yewulx-quanbu" value="0">全部</li><li value="3" id="yewulx-ypxschanggmz">常规门诊</li>
                    <li value="2" id="yewulx-ypxsshouyao">售药</li> 
                    <li value="4" id="yewulx-ypxstiaozhengck">调整出库</li> 
                </ul>
            </div>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
    <div id="chaxtj-ypxs-imp"></div>
    <div class="list-content">
    	<!--按销售明细查询列表  -->
        <div class="table-list" id="chaxtj-ypxsmxlbnr" style="display:none">
            <table width="100%" cellpadding="0" border="0" cellspacing="0">
                <thead>
                <tr>
                    <th width="5%">序号</th>
                    <th width="15%" class="left">药品名称</th>
                    <th width="13%">规格</th>
                    <th width="15%" class="left">厂商</th>
                    <th width="12%">销售日期</th>
                    <th width="10%">来源</th>
                    <th width="10%">类型</th>
                    <th width="10%">数量</th>
                    <th width="10%" class="right">售价（元）</th>
                </tr>
                </thead>
                <tbody id="tb-ypxsmx">
                </tbody>
            </table>
            <div id="pagination-fenyypxsmx"></div>
        </div>
        <!-- 按药品汇总查询列表 -->
        <div class="table-list" id="chaxtj-ypxshzlbnr" style="display:none"> 
            <table width="100%" cellpadding="0" border="0" cellspacing="0">
                <thead>
                <tr>
                    <th width="5%">序号</th>
                    <th width="15%" class="left">药品名称</th>
                    <th width="15%">规格</th>
                    <th width="17%" class="left">厂商</th>
                    <th width="11%">来源</th>
                    <th width="11%">类型</th>
                    <th width="13%">数量</th>
                    <th width="13%" class="right">销售金额（元）</th>
                </tr>
                </thead>
                <tbody id="tb-ypxshz">
                </tbody>
            </table>
            <div id="pagination-fenyypxshz"></div>
        </div>
    </div>
</div>
 <script src="<%=path %>/static/js/chaxtj-ypxs.js"></script>
        <script>
        $(function(){
	 myDateTimePicker($("#ypxs-datetimepicker1"),$("#ypxs-datetimepicker2"));
		 var mrkaishisj=$('#ypxs-kaishjsj').val();
         var mrjieshusj=$('#ypxs-jieshusj').val();
		 getShijian(mrkaishisj,mrjieshusj);
});
        </script></body></html>